package com.xwq.smartgelleryhub.model.dto.excel;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;

import java.util.Date;

/**
 * 空间Excel导入导出DTO
 */
@Data
public class ExcelSpaceDTO {
    
    @ExcelIgnore
    private Long id;
    
    @ExcelProperty("空间名称")
    @ColumnWidth(20)
    private String name;
    
    @ExcelProperty("空间描述")
    @ColumnWidth(40)
    private String description;
    
    @ExcelProperty("创建者ID")
    private Long userId;
    
    @ExcelProperty("空间类型")
    @ColumnWidth(15)
    private String spaceType;
    
    @ExcelProperty("空间等级")
    @ColumnWidth(15)
    private String spaceLevel;
    
    @ExcelProperty("最大容量(MB)")
    private Long maxSize;
    
    @ExcelProperty("已使用容量(MB)")
    private Long usedSize;
    
    @ExcelProperty("是否公开")
    private Integer isPublic;
    
    @ExcelProperty("创建时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @ColumnWidth(20)
    private Date createTime;
    
    @ExcelProperty("更新时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @ColumnWidth(20)
    private Date updateTime;
} 